//
export const isvalidPhone = (str) => {
    const reg = /^1[3|4|5|7|8][0-9]\d{8}$/
    return reg.test(str);
}

export const validPhone = (rule, value, callback) => {
    if (!value) callback(new Error('请输入手机号码'));
    else if (!isvalidPhone(value)) callback(new Error('请输入正确的手机号码'))
    else callback()
}
